<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<tiles:importAttribute scope="request"/>
 <bean:define id="basePath">
  	<%=request.getScheme()%>://<%=request.getServerName()%>:<%=request.getServerPort()%><%=request.getContextPath()%>
 </bean:define>
<html:html lang="true">
  <head>
    <html:base />    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<title><bean:message key="${title}"/></title>
    
    <logic:present name="stylesheet" >
        <link href="<%=request.getContextPath()%><tiles:getAsString name="stylesheet"/>" rel="stylesheet">
    </logic:present>

  </head>
<body BgColor="#FFFFFF">
<%-- Table containing the header block --%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td colspan="2">
            <tiles:insert attribute="top"/>
        </td>
    </tr>
    <tr>
        <td width="1"><html:img page="/images/clear.gif" width="18" height="1" border="0"/></td>
        <td align="center">
            <%-- Table containing main page layout --%>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tr valign="top">              
                    <td width="100%" align="center">  
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td valign="top">
									<h1>
                                          <bean:message key="${title}"/>
									</h1>
                                </td>
                            </tr>
                            <tr>
                                <TD>    
                                   <tiles:insert attribute="bodyHeader"/>
                                   <!-- Main body goes here -->
                                   <tiles:insert attribute="body"/>  
                                </TD>
                            </TR>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
		<tr>
        <td colspan="2">
            <tiles:insert attribute="footer"/>
        </td>
    </tr>
</table>

</body>
</html:html>
